package com.ruoyi.ysNewVideo.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @program: class by cxf
 * @author: AbrahamBill
 * @date: 2022/8/12
 **/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class NewVideoDao extends BaseEntity {
    /**
     * 序列号：用于版本控制
     */
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 设备
     */
    private String appKey;

    /**
     * 设备密钥
     */
    private String appSecret;

    /**
     * 设备序列号
     */
    private String deviceSerial;

    /**
     * Token 令牌
     */
    private String accessToken;

    /**
     * 过期时间
     */
    private Long expireTime;

    /**
     * 设备视频播放地址
     */
    private String url;

    /**
     * 图片地址
     */
    private String picUrl;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("Id", getId())
                .append("appKey", getAppKey())
                .append("appSecret", getAppSecret())
                .append("accessToken", getAccessToken())
                .append("deviceSerial", getDeviceSerial())
                .append("expireTime", getExpireTime())
                .append("url", getUrl())
                .append("picUrl", getPicUrl())
                .toString();
    }
}
